loadfile("lib/status.lua")()

argv = { ... }

if argv[1] == nil then
	if statusLoad() then
		print("running " .. statusGetProg())
		print("data=" .. textutils.serialize(status))
	else
		print("idle")
	end
else
	if argv[1] == 'reset' or argv[1] == 'clear' then
		if statusLoad() then
			statusEnd()
		end
	else
		print("Unknown action")
	end
end